package com.zhl.oracle;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-09-24 12:04
 **/
public class Field2Comment extends AnalysisEventListener<CommentEo> {
	public Field2Comment(){
	}
	@Override
	public void invoke(CommentEo data, AnalysisContext analysisContext) {
//		if("FK_EQU_ID".equals(data.getField())){
//			OracleComment.list.add(analysisContext.readSheetHolder().getSheetName().split("\\(")[0]);
//		}
		if(!OracleComment.commentMap.containsKey(data.getField())) {
			OracleComment.commentMap.put(data.getField(), data.getComments());
		}
	}



	@Override
	public void doAfterAllAnalysed(AnalysisContext analysisContext) {
		System.out.println("=================END===============");
	}
}
